if else if ladder with examples